<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
 <base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="css/ehc.css" type="text/css">
<title><s:text name="E-HC"/></title>
</head>

<body>
<jsp:include page="head.jsp"/> 
<s:action var="queryCountPublic" name="queryCountPublic" executeResult="true" >
</s:action>
<table width="1000" height="569" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td valign="top" width="200" height="569"><jsp:include page="left.jsp"/></td>
    <td valign="top"  width="800">	 
	<table width="920" height="183" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td width="376" height="183">
		  <table width="362" height="329" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td height="13">&nbsp;</td>
            </tr>
            <tr>
              <td height="23"><img src="images/head_frame_SEARCH_HOSPITAL.jpg" width="376" height="29"></td>
            </tr>
            <tr>
              <td height="77">
                <p class="search_title"><img src="images/arr1.gif" width="13" height="12">按医院查找:
                    <input class="input" type="text" name="input_hospital" value="请输入您要查找的医院" onFocus="if(this.value=='请输入您要查找的医院') this.value='';">
                    <input type="submit" name="search_hospital" value="查找医院" onClick="location.href='hospital.jsp'">
                </p>
                <p class="search_introduction">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;已加盟 <s:property value="#queryCountPublic.hospitalCount"/> 家医院 </p>
                </td>
            </tr>
            <tr>
              <td height="20"><img src="images/head_frame_SEARCH_DEPARTMENT.jpg" width="369" height="30"></td>
            </tr>
            <tr>
              <td height="74">
                <p class="search_title"> <img src="images/arr1.gif" width="13" height="12">按科室查找:
                    <input class="input" type="text" name="input_department" value="请输入您要查找的科室" onFocus="if(this.value=='请输入您要查找的科室') this.value='';">
                    <input type="submit" name="search_department" value="查找科室" onClick="location.href='department.jsp'">
                </p>
                <p class="search_introduction">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;共  <s:property value="#queryCountPublic.departmentCount"/> 个科室 </p>
                </td>
            </tr>
            <tr>
              <td height="28"><img src="images/head_frame_SEARCH_DOCTOR.jpg" width="370" height="28"></td>
            </tr>
            <tr>
              <td height="78">
                <form action="/E-HC/Servlet/doctor_do?type=queryByName" method="post">
                <p class="search_title"> <img src="images/arr1.gif" width="13" height="12">按医生查找: 
                    <input class="input" type="text" name="input_doctor" value="请输入您要查找的医生" onFocus="if(this.value=='请输入您要查找的医生') this.value='';">
                    <input type="submit" name="search_doctor" value="查找医生" >    	
                </p>
                </form>
                <p class="search_introduction">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;共  <s:property value="#queryCountPublic.doctorCount"/> 名医生 </p>
                </td>
            </tr>
          </table></td>
          <td width="544" valign="top"><table width="532" height="100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td width="534" height="255">
                <table width="527" height="272" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td>&nbsp;</td>
                    <td height="13">&nbsp;</td>
                  </tr>
                  <tr>
                    <td width="204"><img src="images/best_doctor.jpg" width="203" height="259"></td>
                    <td width="323" height="117">
					<table width="100%" height="254" border="0" cellpadding="0" cellspacing="0">
                      <tr>
                        <td height="28" class="best_doctor_title"><img src="images/head_frame_best_doctor.jpg" width="322" height="28"></td>
                      </tr>
                      <tr>
                        <td height="219" class="best_doctor_introduction">
                        <s:iterator value="#queryTopPublic.doctorVOList" status="st">
                        <s:if test="#st.first">
               				<p>姓名：<s:property value="name"/></p>
               				<p> &nbsp; </p>
                				<p>性别：<s:property value="sex"/></p>
                				<p> &nbsp; </p>
						  <p>医院：<s:property value="hospitalName"/></p>
						  <p> &nbsp; </p>
						  <p>科室：<s:property value="departmentName"/></p>
						  <p> &nbsp; </p>
						  <p>从医时间：<s:property value="jobtime"/></p>
						  <p>&nbsp;  </p>
                          <p>好评度：</p>
						  <p>&nbsp;
						  <%for(int i=0;i<(Integer)request.getAttribute("avgRank")  ;i++){%>
							  <img src="images/heart.jpg" width="19" height="18">
						 <% }%> 
						  
						  </p>						  
                     
              				</s:if>
          				</s:iterator>
						  </td>
						   </tr>
                    </table></td>
                  </tr>
                </table></td>
              </tr>
          </table></td>
        </tr>
      </table>
	  <div id="div_advertisement" style="overflow:hidden ">
	  <table width="800" border="0" align="center" cellPadding="0" cellspace="0">
             <tr>
            <td width="700" vAlign="top" id="deme1">
	  <table width="700" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="16%"><img src="images/1165683053.jpg" width="140" height="75"></td>
          <td width="16%" height="80"><img src="images/1165739294.jpg" width="140" height="75"></td>
          <td width="17%"><img src="images/advertisement.gif" width="140" height="75"></td>
          <td width="17%"><img src="images/advertisement.gif" width="140" height="75"></td>
          <td width="17%"><img src="images/advertisement.gif" width="140" height="75"></td>
          </tr>
        <tr>
          <td class="advertisement"><div align="center">杭州可达医疗设备有限公司</div></td>
          <td class="advertisement"><div align="center">上海客控医疗设备有限公司</div></td>
          <td class="advertisement"><div align="center">广告招租</div></td>
          <td class="advertisement"><div align="center">广告招租</div></td>
          <td class="advertisement"><div align="center">广告招租</div></td>
          </tr>
      </table>
	  </td>
	  <td width="165" vAlign="top" id="deme2"></td>  </tr>
	  </table>
	  </div>
	  
<!--图片滚动js-->	  
<SCRIPT>
var speed1=15 //
deme2.innerHTML=deme1.innerHTML
div_advertisement.scrollLeft=div_advertisement.offsetWidth
function Marquee(){
if(div_advertisement.scrollLeft<=0)
div_advertisement.scrollLeft+=deme2.offsetWidth
else{
div_advertisement.scrollLeft--
}
}
var MyMrr=setInterval(Marquee,speed1)
div_advertisement.onmouseover=function() {clearInterval(MyMrr)}
div_advertisement.onmouseout=function() {MyMrr=setInterval(Marquee,speed1)}
</SCRIPT>


<table width="868" height="196" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="249" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="40"><img src="images/head_frame_HEALTH.jpg" width="200" height="40"></td>
      </tr>
      <tr>
        <td height="25" class="content"><img src="images/dot1.gif" width="11" height="10"><a href="HealthCare.jsp">饮食健康常用知识</a></td>
      </tr>
      <tr>
        <td height="25" class="content"><img src="images/dot1.gif" width="11" height="10"><a href="HealthCare.jsp">十七种家常杀手小菜</a></td>
      </tr>
      <tr>
        <td height="25" class="content"><img src="images/dot1.gif" width="11" height="10"><a href="HealthCare.jsp">夏季，苦味食物别乱吃</a></td>
      </tr>
      <tr>
        <td height="25" class="content"><img src="images/dot1.gif" width="11" height="10"><a href="HealthCare.jsp">改善考前过度焦虑小策略</a></td>
      </tr>
      <tr>
        <td height="25" class="content"><img src="images/dot1.gif" width="11" height="10"><a href="HealthCare.jsp">在外吃小龙虾必注意几个问题</a></td>
      </tr>
    </table></td>
    <td width="8">&nbsp;</td>
    <td width="251" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="40"><img src="images/head_frame_INSULT.jpg" width="200" height="40"></td>
      </tr>
      <tr>
        <td height="25" class="content"><img src="images/dot1.gif" width="11" height="10"><a href="question_list.jsp">吃东西时候牙齿痛怎么办</a></td>
      </tr>
      <tr>
        <td height="25" class="content"><img src="images/dot1.gif" width="11" height="10"><a href="question_list.jsp">补牙以后感觉牙齿松动怎么办</a></td>
      </tr>
      <tr>
        <td height="25" class="content"><img src="images/dot1.gif" width="11" height="10"><a href="question_list.jsp">早上刷牙老出血是什么情况</a></td>
      </tr>
      <tr>
        <td height="25" class="content"><img src="images/dot1.gif" width="11" height="10"><a href="question_list.jsp">牙龈肿痛怎么办</a></td>
      </tr>
      <tr>
        <td height="25" class="content"><img src="images/dot1.gif" width="11" height="10"><a href="question_list.jsp">如何护理牙齿</a></td>
      </tr>
    </table></td>
    <td width="10">&nbsp;</td>
    <td width="284" height="196" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="40"><img src="images/head_frame_FAQ.jpg" width="200" height="40"></td>
      </tr>
      <tr>
        <td height="25" class="content"><img src="images/dot1.gif" width="11" height="10"><a href="FAQ.jsp">通过什么方式可以预约挂号</a></td>
      </tr>
      <tr>
        <td height="25" class="content"><img src="images/dot1.gif" width="11" height="10"><a href="FAQ.jsp">在线挂号需要手续费吗</a></td>
      </tr>
      <tr>
        <td height="25" class="content"><img src="images/dot1.gif" width="11" height="10"><a href="FAQ.jsp">网上预约挂号如何操作</a></td>
      </tr>
      <tr>
        <td height="25" class="content"><img src="images/dot1.gif" width="11" height="10"><a href="FAQ.jsp">挂号成功一定能预约到专家吗</a></td>
      </tr>
      <tr>
        <td height="25" class="content"><img src="images/dot1.gif" width="11" height="10"><a href="FAQ.jsp">如何对医师进行评价</a></td>
      </tr>
    </table></td>
  </tr>
</table>


    </td>
  </tr>
</table>
<jsp:include page="foot.jsp"/> 

</body>
</html>
